home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / filtfun < prev    next >
Text File  |  1995-11-08  |  2KB  |  83 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Fun with filter (and other neat tricks).
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9.  
  10. camera {
  11.    location  <0, 2, -4.5>
  12.    direction <0, 0,  1>
  13.    up  <0, 1, 0>
  14.    right <4/3, 0, 0>
  15.    look_at <0, 0.4, 0>
  16. }
  17.  
  18. // Floor, with phoney gray "planks"
  19. plane { y, 0
  20.  
  21.    pigment {
  22.       gradient x
  23.       color_map {
  24.          [0,    0.25 color Gray      color Gray]
  25.          [0.25, 0.50 color DimGray   color LightGray]
  26.          [0.50, 0.75 color LightGray color Gray]
  27.          [0.75, 1    color Gray      color Gray]
  28.       }
  29.       scale <0.45, 1, 1>
  30.    }
  31.    finish{ambient 0.1 diffuse 0.7}
  32. }
  33.  
  34. //  Note: Clear = color White filter 1
  35.  
  36. // A blobby sphere
  37. sphere  { <0, 1, -1.5>, 1
  38.     pigment {
  39.       bozo
  40.       turbulence 0.5
  41.       octaves 1
  42.       scale 0.2
  43.       color_map {
  44.          [0,   0.5 color red 1 filter 0.5 color red 1 filter 1]
  45.          [0.5, 1   color Clear           color Clear]
  46.       }
  47.    }
  48.    finish {ambient 0.15  diffuse 0.7}
  49. }
  50.  
  51. // A sliced green box
  52. object { UnitBox
  53.    rotate 45*y
  54.    translate <-4, 1, 4>
  55.  
  56.    pigment {
  57.       gradient y
  58.       color_map {
  59.          [0,   0.5 color Green color Green]
  60.          [0.5, 1   color Clear color Clear]
  61.       }
  62.       scale 0.5
  63.    }
  64. }
  65.  
  66. // A yellow, swirly finite cylinder
  67. object { Disk_Y
  68.    translate <4, 1, 4>
  69.  
  70.    pigment {
  71.       gradient y
  72.       turbulence 2
  73.       octaves 1
  74.       color_map {
  75.          [0,   0.5 color Yellow color Yellow]
  76.          [0.5, 1   color Clear  color Clear]
  77.       }
  78.       scale 0.5
  79.    }
  80. }
  81.  
  82. light_source { <10, 12, -40> colour White }
  83.